<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<title>RT-BOOT Web恢复终端</title>
	<link rel="stylesheet" href="/style.css" type="text/css" />
	<script type="text/javascript" src="/nvbar.js"></script>
</head>
<body>
	<div id="container">
		<div id="bootloader_console">RT-BOOT Web恢复终端</div>
		<div id="nav"><ul id="navbar"></ul></div>
		<div id="page">
		<div id="fw_type">
        <ul>
            <li><a id="fw_type_generic" class="fw_type_clicked">常规固件</a></li>
			<li><a id="fw_type_uboot" class="fw_type_unclicked">引导固件</a></li>
			<li><a id="fw_type_art" class="fw_type_unclicked">无线校准固件</a></li>
            <li><a id="fw_type_fullflash" class="fw_type_unclicked">编程器固件</a></li>
        </ul>
		<div class="clearfloat"> </div>
		<div id="fw_files">
			<div id="fw_files_generic">
				<p>您即将更新您的设备固件<br>从硬盘中选择您的新固件文件并点击 <strong>"上传"</strong> 按钮<br>请注意,请尽量保持设备电源正常运行,否则设备有一定概率会发生损坏</p>
				<form method="post" enctype="multipart/form-data" action="/upload">
				<input type="file" name="fw_file" id="fw_file" class="fw_upload">
				<input type="submit" value="上传"></form>
			</div>
			<div id="fw_files_uboot">
				<p>您即将更新您的引导固件<br>从硬盘中选择您的新固件文件并点击 <strong>"上传"</strong> 按钮<br>请注意,请尽量保持设备电源正常运行,否则设备有一定概率会发生损坏</p>
				<form method="post" enctype="multipart/form-data" action="/upload">
				<input type="file" name="uboot_file" id="uboot_file" class="fw_upload">
				<input type="submit" value="上传"></form>
			</div>
			<div id="fw_files_art">
				<p>您即将更新您的无线校准固件<br>从硬盘中选择您的新固件文件并点击 <strong>"上传"</strong> 按钮<br>请注意,请尽量保持设备电源正常运行,否则设备有一定概率会发生损坏</p>
				<form method="post" enctype="multipart/form-data" action="/upload">
				<input type="file" name="art_file" id="art_file" class="fw_upload">
				<input type="submit" value="上传"></form>
			</div>
			<div id="fw_files_fullflash">
				<p>您即将更新您的整体固件<br>从硬盘中选择您的新固件文件并点击 <strong>"上传"</strong> 按钮<br>请注意,请尽量保持设备电源正常运行,否则设备有一定概率会发生损坏</p>
				<form method="post" enctype="multipart/form-data" action="/upload">
				<input type="file" name="full_file" id="full_file" class="fw_upload">
				<input type="submit" value="上传"></form>
			</div>
		</div>
		<div class="clearfloat"> 
		</div>
		</div>
		<script type="text/javascript">

			var fw_type_fullflash = document.getElementById("fw_type_fullflash");
			var fw_type_generic = document.getElementById("fw_type_generic");
			var fw_type_uboot = document.getElementById("fw_type_uboot");
			var fw_type_art = document.getElementById("fw_type_art");
		
			var fw_files = document.getElementById("fw_files");
			var fw_files_generic = document.getElementById("fw_files_generic");
			var fw_files_uboot = document.getElementById("fw_files_uboot");
			var fw_files_art = document.getElementById("fw_files_art");
			var fw_files_fullflash = document.getElementById("fw_files_fullflash");
		
			switch_to_generic();
		
			fw_type_generic.onclick = function () {
				if (fw_type_generic.className == "fw_type_clicked")
					return;
		
				fw_type_fullflash.className = "fw_type_unclicked";
				fw_type_uboot.className = "fw_type_unclicked";
				fw_type_art.className = "fw_type_unclicked";
				fw_type_generic.className = "fw_type_clicked";
		
				switch_to_generic();
			}
		
			fw_type_fullflash.onclick = function () {
				if (fw_type_fullflash.className == "fw_type_clicked")
					return;
		
				fw_type_generic.className = "fw_type_unclicked";
				fw_type_uboot.className = "fw_type_unclicked";
				fw_type_art.className = "fw_type_unclicked";
				fw_type_fullflash.className = "fw_type_clicked";
		
				switch_to_fullflash();
			}
			
			fw_type_uboot.onclick = function () {
				if (fw_type_uboot.className == "fw_type_clicked")
					return;
		
				fw_type_generic.className = "fw_type_unclicked";
				fw_type_fullflash.className = "fw_type_unclicked";
				fw_type_art.className = "fw_type_unclicked";
				fw_type_uboot.className = "fw_type_clicked";
		
				switch_to_uboot();
			}
			
			fw_type_art.onclick = function () {
				if (fw_type_art.className == "fw_type_clicked")
					return;
		
				fw_type_generic.className = "fw_type_unclicked";
				fw_type_fullflash.className = "fw_type_unclicked";
				fw_type_uboot.className = "fw_type_unclicked";
				fw_type_art.className = "fw_type_clicked";
		
				switch_to_art();
			}
			
			function switch_to_generic () {
				fw_files_fullflash.style.display = "none";
				fw_files.removeChild(fw_files_fullflash);
				fw_files.appendChild(fw_files_fullflash);
				
				fw_files_uboot.style.display = "none";
				fw_files.removeChild(fw_files_uboot);
				fw_files.appendChild(fw_files_uboot);
				
				fw_files_art.style.display = "none";
				fw_files.removeChild(fw_files_art);
				fw_files.appendChild(fw_files_art);
		
				fw_files.removeChild(fw_files_generic);
				fw_files_generic.style.display = "block";
				fw_files.appendChild(fw_files_generic);
			}
		
			function switch_to_fullflash () {		
				fw_files_uboot.style.display = "none";
				fw_files.removeChild(fw_files_uboot);
				fw_files.appendChild(fw_files_uboot);
				
				fw_files_art.style.display = "none";
				fw_files.removeChild(fw_files_art);
				fw_files.appendChild(fw_files_art);
		
				fw_files_generic.style.display = "none";
				fw_files.removeChild(fw_files_generic);
				fw_files.appendChild(fw_files_generic);
				
				fw_files.removeChild(fw_files_fullflash);
				fw_files_fullflash.style.display = "block";
				fw_files.appendChild(fw_files_fullflash);
			}
			
			function switch_to_uboot () {				
				fw_files_generic.style.display = "none";
				fw_files.removeChild(fw_files_generic);
				fw_files.appendChild(fw_files_generic);
				
				fw_files_art.style.display = "none";
				fw_files.removeChild(fw_files_art);
				fw_files.appendChild(fw_files_art);
		
				fw_files_fullflash.style.display = "none";
				fw_files.removeChild(fw_files_fullflash);
				fw_files.appendChild(fw_files_fullflash);
				
				fw_files.removeChild(fw_files_uboot);
				fw_files_uboot.style.display = "block";
				fw_files.appendChild(fw_files_uboot);
			}
			
			function switch_to_art () {							
				fw_files_generic.style.display = "none";
				fw_files.removeChild(fw_files_generic);
				fw_files.appendChild(fw_files_generic);
				
				fw_files_uboot.style.display = "none";
				fw_files.removeChild(fw_files_uboot);
				fw_files.appendChild(fw_files_uboot);
		
				fw_files_fullflash.style.display = "none";
				fw_files.removeChild(fw_files_fullflash);
				fw_files.appendChild(fw_files_fullflash);
				
				fw_files.removeChild(fw_files_art);
				fw_files_art.style.display = "block";
				fw_files.appendChild(fw_files_art);
			}
			
		</script>
		</div>
		<script type="text/javascript">
		create_nvbar("/upgrade.html");
		</script>
</body></html>